using System;
using System.Collections;
using System.Data.Linq.Mapping;
using System.Runtime.Serialization;
using Portal.Core.Binding.FormBuilder;
using Portal.Core.Helper;
using System.Linq;

namespace Portal.Data.Entity
{
	[Table(Name = "dbo.Role"),Serializable, DataContractAttribute]
    public class Role : BaseObject
	{
		#region Properties
        public int ID { get { return Role_Id; } set { Role_Id = value; } }

        [SkipBinding]
		[ColumnAttribute(Name = "Role_Id", IsPrimaryKey = true , IsDbGenerated = true)]
		[DataMemberAttribute(Order = 1)]
        public int Role_Id { get; set; }

		[ColumnAttribute(Name = "Name")]
		[DataMemberAttribute(Order = 2)]
		public string Name {get;set;}


		#endregion
		#region Methods
		public static Role FindByPrimaryKey(object objectid)
		{
		    return FindByPrimaryKey<Role>(objectid);
		}
		#endregion Methods
	}
}
